﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace Weazel.Gezel.Parser
{
  public struct PortInfo
  {
    public string Name;
    public SignalTypeInfo Type;
    public bool InPort;
    public Model.Position StartPosition;
		public Model.Position EndPosition;
    public int PortPosition;

    public PortInfo(
			string name, 
			SignalTypeInfo type, 
			bool inPort, 
			int portPosition, 
			Model.Position startPosition,
			Model.Position endPosition
		)
    {
      this.Name = name;
      this.Type = type;
      this.InPort = inPort;
      this.StartPosition = startPosition;
			this.EndPosition = endPosition;
      this.PortPosition = portPosition;
    }
  }

  public struct SignalTypeInfo
  {
    public int Width;
    public bool Signed;

    public SignalTypeInfo(int width, bool signed)
    {
      this.Width = width;
      this.Signed = signed;
    }
  }
}
